<!-- src/App.vue -->
<template>
  <div class="app">
   
    <router-view></router-view>
    <div class="landscape-tip">
      请将屏幕竖向浏览
    </div>
  </div>
</template>
<script lang="ts">
import { defineComponent } from 'vue';
import FooterComponent from './components/FooterComponent.vue';

export default defineComponent({

})
</script>

<style lang="scss">
  .app{
    height: 100%;
  }
.container {
  height: 100%;
  display: flex;
  flex-direction: column;

  .header {
    height: 0.44rem;
    background-color: #f66;
  }

  .content {
    flex: 1;
    overflow: auto;
  }

  .footer {
    width: 100%;
    height: 0.5rem;
    background-color: #efefef;
    user-select: none;
    position: fixed;
    bottom: 0;
    ul {
      width: 100%;
      height: 0.5rem;
      display: flex;
      z-index: 999;
      li {
        flex: 1;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;

        span {
          font-size: 0.2rem;
        }

        p {
          font-size: 0.12rem;
        }
      }
    }
  }
}

.landscape-tip {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, .8);
  color: #fff;
  display: none;
  justify-content: center;
  align-items: center;
}

@media only screen and (orientation: landscape) {

  // 横屏
  .landscape-tip {
    display: flex;
  }
}
</style>